<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="Step 2: Setting Windows PowerShell Permissions">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="sql-0009.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="30-OceanProtect Appliance 1.5.0-1.6.0 Help Center">
<meta name="DC.Publisher" content="20241029">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="sql-0011">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>Step 2: Setting Windows PowerShell Permissions</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="sql-0011"></a><a name="sql-0011"></a>

<h1 class="topictitle1">Step 2: Setting Windows PowerShell Permissions</h1>
<div><p>Ensure that Windows PowerShell has script execution permissions (controlled by <strong>RemoteSigned</strong>, <strong>Bypass</strong>, or <strong>Unrestricted</strong>). </p>
<div class="section" id="sql-0011__section196361853169"><h4 class="sectiontitle">Procedure</h4><ol id="sql-0011__ol3845155813619"><li id="sql-0011__li1487878141211"><span>Open Windows PowerShell and run the <strong id="sql-0011__b99541622111210">Get-ExecutionPolicy</strong> command to check whether Windows PowerShell has the <strong id="sql-0011__b1231612865819">RemoteSigned</strong>, <strong id="sql-0011__b11621181012580">Bypass</strong>, or <strong id="sql-0011__b18996121455817">Unrestricted</strong> policy to execute scripts.</span><p><ul id="sql-0011__ul8490122691811"><li id="sql-0011__li9490326111815">If any of the preceding permissions exists, no further action is required.</li><li id="sql-0011__li1749052616186">If the preceding permissions do not exist, go to <a href="#sql-0011__li48454583610">2</a>.</li></ul>
</p></li><li id="sql-0011__li48454583610"><a name="sql-0011__li48454583610"></a><a name="li48454583610"></a><span>Run the <strong id="sql-0011__b1828154333411">Set-ExecutionPolicy RemoteSigned</strong> command to grant the <strong id="sql-0011__b4293642203618">RemoteSigned</strong> permission.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="sql-0009.html">Backing Up a SQL Server Database</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>